package com.bbkb.user.remoting;

import com.bbkb.common.exception.BaseException;
import com.bbkb.common.page.PageResult;
import com.bbkb.user.dto.SysUserDTO;

import java.util.List;

/**
 * 功能：
 * 作者：沈飞超
 * 时间：2020年09月27日 16:52
 **/
public interface ISysUserRemoting {

    SysUserDTO getByUserName(String userName);

    PageResult<SysUserDTO> querySysUserPage(SysUserDTO userDTO) throws BaseException;

    void updateStatus(Long id, String status) throws BaseException;

    SysUserDTO getSysUserById(Long id) throws BaseException;

    void addSysUser(SysUserDTO sysUser) throws BaseException;

    void updateSysUser(SysUserDTO sysUser) throws BaseException;

    List<SysUserDTO> getSysUsersByRoleId(Long roleId) throws BaseException;
}
